package com.bfly.mall.order.dto;

import com.bfly.core.config.ResourceConfigure;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * 订单项名称DTO--- 产品评论列表配合使用
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/9/15 21:17
 */
public class OrderSkuNamesDTO implements Serializable {

    private static final long serialVersionUID = 6153623746526248210L;

    private String productName;
    private String skuName;
    private String sn;
    private String cover;

    public String getUrl() {
        return StringUtils.isNotBlank(getCover()) ? ResourceConfigure.getResourceHttpUrl(getCover()) : "";
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }
}
